package com.dao;


import com.entity.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author liuronghua
 * @version 1.0
 * @data 2020-09-2020/9/22 9:01
 * @desc
 */
public interface AdminDao {

    @Select("select * from admins where username=#{username} and password=#{password}")
    public Admin selectByUsernameAndPassword(@Param("username")String username, @Param("password") String password);

    @Select("select * from admins")
    public List<Admin> selectList();



}
